package com.itheima.jdbc;

import java.util.List;

/**
 * @author CC小天才
 * @website www.flyskill.cn
 * @date 2021/10/13 22:58
 **/

public class findAllAccountTest {
    ApplicationContext applicationContext=new ClassPathXmlApplicationContext("applicationContext.xml");
    AccountDao accountDao= (AccountDao) applicationContext.getBean("accounDao");
    Account account=new Account();

    List<Account> accounts=accountDao.findAllAccount();
    for(Account act: account){
        System.out.println(act);
    }
}
